net/designware: Do not select MIIPORT for RGMII interface
authorVipin Kumar <[email protected]>
Thu, 13 Dec 2012 11:52:51 +0000 (17:22 +0530)
committerJoe Hershberger <[email protected]>
Tue, 25 Jun 2013 00:10:16 +0000 (19:10 -0500)
Do not select MIIPORT for RGMII interface

Signed-off-by: Vipin Kumar <[email protected]>
Acked-by: Stefan Roese <[email protected]>
drivers/net/designware.c

index bf21a08bdf475afb81d6335f51cfb84cf4a7e8f9..46f6601fa32e4873f360613f003615d9393b7539 100644 (file)
@@ -113,7 +113,9 @@ static int mac_reset(struct eth_device *dev)
        int timeout = CONFIG_MACRESET_TIMEOUT;
 
        writel(DMAMAC_SRST, &dma_p->busmode);
-       writel(MII_PORTSELECT, &mac_p->conf);
+
+       if (priv->interface != PHY_INTERFACE_MODE_RGMII)
+               writel(MII_PORTSELECT, &mac_p->conf);
 
        start = get_timer(0);
        while (get_timer(start) < timeout) {